package com.selfdriving.wl.activity;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.selfdriving.BaseFragmentActivity;
import com.selfdriving.R;
import com.selfdriving.activity.ContactActivity;

public class AddMyFriendsManage extends BaseFragmentActivity implements
		OnClickListener
{
	LinearLayout addFriends;
	LinearLayout addGroups;
	LinearLayout CreatGroups;
	private TextView title;
	private ImageButton imgBreak;

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		super.setContentView(R.layout.w_activity_add_friends_manage);
		initViews();
		initEvents();
	}

	@Override
	protected void initViews()
	{
		// TODO Auto-generated method stub
		addFriends = (LinearLayout) super
				.findViewById(R.id.add_friends_addFriends);
		addGroups = (LinearLayout) super
				.findViewById(R.id.add_friends_addGroups);
		CreatGroups = (LinearLayout) super
				.findViewById(R.id.add_friends_CreatGroups);
		title = (TextView) super.findViewById(R.id.top_text_middle);
		imgBreak = (ImageButton) super.findViewById(R.id.head_break);
		imgBreak.setVisibility(View.VISIBLE);
		title.setText("添加");
	}

	@Override
	protected void initEvents()
	{
		// TODO Auto-generated method stub
		imgBreak.setOnClickListener(this);
		addFriends.setOnClickListener(this);
		addGroups.setOnClickListener(this);
		CreatGroups.setOnClickListener(this);
	}

	@Override
	public void onClick(View v)
	{
		// TODO Auto-generated method stub
		switch (v.getId())
		{
		case R.id.head_break:
			finish();
			break;
		case R.id.add_friends_addFriends:
			startActivity(AddMyFriends.class);
			break;
		case R.id.add_friends_addGroups:
			break;
		case R.id.add_friends_CreatGroups:
			startActivity(ContactActivity.class);
			break;
		}
	}

}
